How do I insert the current page number on a form with overflow?

Follow these steps:

In the PrtType:XXX control group, where XXX could be PCL, AFP, XER, and so on, add this option:

PageNumbers = Yes

In the section, create a variable for the page number. If you need something like Page Number: xx, add a text label for Page Number: before the variable field. Set the attributes for this field as follows: Type=Alphanumeric, Scope=Form. Name this field as shown below:

 

Option

Description

FORM PAGE NUM

Use this name if you want the system to count the page number within the form. If you set up a 5-page form as two forms (one has three pages and the other has two pages), the system treats them as two separate forms.

FORMSET PAGE NUM

Use this name, if you want the system to count the page number within the form set.

If you want the system to count the total page number of the form or form set, add another variable for the total page number. Again, the variable is just for the number. If you want to add text to help presentation, also add a text label.

Set the attributes for this field as follows: Type=Alphanumeric, Scope=Global. Name this field as shown below:

 

Option

Description

FORM PAGE NUM OF

Use this name for the total page number for a form.

FORMSET PAGE NUM OF

Use this name for the total page number for a form set.

The system automatically inserts the page number for you. You do not have to add processing rules.

If you turn off the DownloadFAP INI option, use the Mk_Hard rule for these variables Otherwise, no additional rules are required.

Note   Do not embed these variables fields in text areas.